package com.kyrioscraft.cloud.common.vo;

import com.google.common.collect.Lists;
import lombok.Data;

import java.util.List;

/**
 * @Author kyrioscraft
 * @Date 2018/12/17 9:44
 * @Description //TODO
 **/
@Data
public class TreeNode {
    protected int id;
    protected int parentId;
    protected List<TreeNode> children = Lists.newArrayList();

    public void addChildNode(TreeNode node) {
        children.add(node);
    }
}
